package ctn.event;

import ctn.contant.PlugContant;
import ctn.util.StringUtils;

public class CTNEventTransferFun extends CTNEvent {
	private final String eventID=PlugContant.EVENT_TRAN_FUN;
	private String funID;
	private String tranID;
	public CTNEventTransferFun(String funID,String tranID) {
		super();
		this.funID = funID;
		this.tranID=tranID;
	}



	public String getTranID() {
		return tranID;
	}



	public void setTranID(String tranID) {
		this.tranID = tranID;
	}



	@Override
	public String getEventID() {
		return this.eventID;
	}
	
	

	public String getFunID() {
		return funID;
	}



	public void setFunID(String funID) {
		this.funID = funID;
	}



	@Override
	public String toEventLink(){
		StringBuffer sb=new StringBuffer();
		if(!StringUtils.isEmptyString(this.funID)){
			sb.append("funID:").append(this.funID).append(";");
		}
		if(!StringUtils.isEmptyString(this.tranID)){
			sb.append("tranID:").append(this.tranID).append(";");
		}
		return sb.toString();
	}
	
}
